import { configure } from '@storybook/vue';
import Vue from 'vue'

import '../src/style/reset.scss'
import Button from '../src/components/Button/Button.vue'
import Switch from '../src/components/Switch/Switch.vue'
import Checkbox from '../src/components/Checkbox/Checkbox'
import Radio from '../src/components/Radio/Radio'
import SearchBar from '../src/components/SearchBar/SearchBar'

Vue.component('cl-button', Button)
Vue.component('cl-switch', Switch)
Vue.component('cl-checkbox', Checkbox)
Vue.component('cl-radio', Radio)
Vue.component('cl-search-bar', SearchBar)

function loadStories() {
  // require('../stories/index.js');
  require('../stories/button.story');
  require('../stories/switch.story');
  require('../stories/checkbox.story');
  require('../stories/radio.story');
  require('../stories/searchBar.story');
  // You can require as many stories as you need.
}

configure(loadStories, module);